/**
 *
 */
package com.ozq.util;

/**
 * <合并生成缓存文件夹> <功能详细描述>
 * 
 * @author 欧增奇
 * @version [版本号, 2017年3月20日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class MergeCacheXmlUtils
{

	/*public static void main(String[] args) throws IOException
	{
		// 文件地址
		String path = "D:\\IMyCode\\onLine\\OzqBlog\\src\\main\\java\\cache";
		String merge_xml = "D:\\IMyCode\\onLine\\OzqBlog\\src\\main\\resources\\mergeEhcache.xml";

		
		FileWriter fw = new FileWriter(new File(merge_xml));
		BufferedWriter bw = new BufferedWriter(fw);

		int nubmer = 1;
		File file = new File(path);
		if (file.exists() && file.isDirectory())
		{
			File[] filelist = file.listFiles();
			for (File file2 : filelist)
			{
				BufferedReader bf = new BufferedReader(new FileReader(file2));
				bf.readLine();
				bw.write(bf.readLine().replace("<!-- ", "<!-- " + nubmer++ + ".") + "\r\n");
				bw.write(bf.readLine() + "\r\n\r\n");
				bf.close();
			}
		}
		bw.close();
		fw.close();
	}*/
}
